<?php /* Smarty version 2.6.26, created on 2018-07-05 16:53:40
         compiled from D:%5Cwww%5Cvweb/admin%5Ctemplates/admin/func.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>  
<div class="nav"><span>权限管理</span></div> 
<div class="filter">  
	<a href="javascript:;" onclick="edit('添加模块', '?m=admin&a=func_edit<?php if ($_GET['pid']): ?>&pid=<?php echo $_GET['pid']; ?>
<?php endif; ?>')" class="add">添加功能</a> 
</div>
<div class="main"> 
	<table class="ltable">
	  	<thead>
		  	<tr> 
				<th width="100">模块别名</th>
				<th width="200">名称</th>
				<th width="80">排序</th> 
				<th width="130">操作</th>
				<th width="110">添加时间</th>
				<th></th>
		  	</tr>
	  	</thead>
		<tbody>
		<?php if ($this->_tpl_vars['data']): ?>
			<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<tr>
					<td>
					<?php if ($_GET['pid']): ?>
						<?php echo $this->_tpl_vars['i']['code']; ?>

					<?php else: ?>
						<a href="?m=admin&a=func&pid=<?php echo $this->_tpl_vars['i']['id']; ?>
" class="down"><?php echo $this->_tpl_vars['i']['code']; ?>
</a>
					<?php endif; ?>
					</td> 
					<td><?php echo $this->_tpl_vars['i']['name']; ?>
</td> 
					<td><?php echo $this->_tpl_vars['i']['px']; ?>
</td>
					<td>
						<a href="javascript:;" onclick="edit('编辑模块', '?m=admin&a=func_edit&id=<?php echo $this->_tpl_vars['i']['id']; ?>
<?php if ($_GET['pid']): ?>&pid=<?php echo $_GET['pid']; ?>
<?php endif; ?>')" class="edit">编辑</a>
					 	<a href="javascript:;" data-id="<?php echo $this->_tpl_vars['i']['id']; ?>
" class="del">删除</a> 
					</td>
					<td><?php echo $this->_tpl_vars['i']['addtime']; ?>
</td>
					<td></td>
				</tr>
			<?php endforeach; endif; unset($_from); ?>
		<?php else: ?>
			<tr><td colspan="6">还没有数据</td></tr>
		<?php endif; ?>
		</tbody> 
	</table>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<script type="text/javascript">
_delete('?m=admin&a=func_del');
function edit(name,url){  
	parent.dialog(name,url,400); 
}
</script>